<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 128px;
      height: 200px;
      background: url(僵尸.jpg) no-repeat;
      animation: corpse 2s steps(9) infinite;
      margin-left: 1000px;
      border:1px solid red;
    }

    @keyframes corpse {
      from {
        background-position: 0 0;
      }

      to {
        /* 最终的值： width*steps(9) */
        background-position: -1152px 0;
      }
    }
  </style>
</head>

<body>
  <div></div>
</body>

</html>